<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>zmall网上商城-商店系统</title>
<meta name="author" content="DeathGhost" />
<style type="text/css">
table {
	margin-top: 20px;
	width: 100%;
	height: 100%;
}
</style>
<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<script src="js/jquery.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>
	(function($) {
		$(window).load(
				function() {

					$("a[rel='load-content']").click(
							function(e) {
								e.preventDefault();
								var url = $(this).attr("href");
								$.get(url, function(data) {
									$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
									//scroll-to appended content 
									$(".content").mCustomScrollbar("scrollTo",
											"h2:last");
								});
							});

					$(".content").delegate(
							"a[href='top']",
							"click",
							function(e) {
								e.preventDefault();
								$(".content").mCustomScrollbar("scrollTo",
										$(this).attr("href"));
							});

				});
	})(jQuery);
</script>
</head>
<body>
	<!--header-->
	<header class="head">
		<div class="title">zmall网上商城</div>
		<ul class="rt_nav">
			<li><a href="UserLogin.jsp" class="quit_icon">退出</a></li>
		</ul>
	</header>
	<!--aside nav-->
	<!--aside nav-->
	<aside class="lt_aside_nav content mCustomScrollbar">
		<h2>
			<a href="StoreIndex.jsp">首页</a>
		</h2>
		<ul>
			<li>
				<dl>
					<dt>商品管理</dt>
					<!--当前链接则添加class:active-->
					<dd>
						<a href="#">商品列表</a>
					</dd>
				</dl>
			</li>
			<li>
				<dl>
					<dt>订单管理</dt>
					<dd>
						<a href="order_list.jsp">订单列表</a>
					</dd>
				</dl>
			</li>
			<li>
				<dl>
					<dt>评论管理</dt>
					<dd>
						<a href="comment_list.jsp">查看评论</a>
					</dd>
				</dl>
			</li>
		</ul>
	</aside>
	<section class="rt_wrap content mCustomScrollbar">
		<div class="rt_content">
			<div class="page_title">
				<h2 class="fl">店铺信息</h2>
			</div>
			<form action="StoreIndexServlet" method="get">
			<%=request.getAttribute("msg")!=null ? request.getAttribute("msg"): ""   %>
				<ul class="ulColumn2">
					<li><span class="item_name" style="width: 120px;">店主：</span> <span
						id="shopkeeper">${shop.getShopuser()}</span></li>
					<li><span class="item_name" style="width: 120px;">店铺名称：</span>
						<input type="text" class="textbox textbox_225" name="shopname"
						required="required" name="shopname" value="${shop.getShopname()}" />
						<span class="errorTips"></span></li>
					<li><span class="item_name" style="width: 120px;">店铺编号：</span>
						<input type="text" class="textbox textbox_225" readonly="readonly"
						name="shopid" value="${shop.getShopid()}" /></li>

					<li><span class="item_name" style="width: 120px;">手机号码：</span>
						<input type="tel" class="textbox textbox_225" name="phone"
						required="required" value="${shop.getShopphone()}" /> <span
						class="errorTips" id="errorphone"></span></li>

					<li><span class="item_name" style="width: 120px;">店铺状态：</span>
						<span id="StoreState"> <c:choose>
								<c:when test="${shop.getShopstate()==1}">正常</c:when>
								<c:when test="${shop.getShopstate()==0}">黑名单</c:when>
							</c:choose>
					</span></li>
					<li><span class="item_name" style="width: 120px;"></span> <input
						type="hidden" name="op" value="update"></input> 
						<input
						type="submit" class="link_btn" value="更新/保存" /></li>
				</ul>
			</form>
		</div>
	</section>
	<style>
.dataStatistic {
	width: 400px;
	height: 200px;
	border: 1px solid #ccc;
	margin: 0 auto;
	margin: 10px;
	overflow: hidden
}

#cylindrical {
	width: 400px;
	height: 200px;
	margin-top: -15px
}

#line {
	width: 400px;
	height: 200px;
	margin-top: -15px
}

#pie {
	width: 400px;
	height: 200px;
	margin-top: -15px
}

.head {
	height: 70px;
}

.title {
	position: absolute;
	width: 200px;
	left: 15px;
	height: 75px;
	color: white;
	line-height: 75px;
	font-size: 30px;
}
</style>
	<script src="js/amcharts.js" type="text/javascript"></script>
	<script src="js/serial.js" type="text/javascript"></script>
	<script src="js/pie.js" type="text/javascript"></script>
</body>
<script src="js/jquery-2.0.3.js"></script>
<script type="text/javascript">
$(function () {
	$("#phone").blur(function(){
		var phone=this.val();
		/*正则校验手机号码格式*/
		if(!(/^1[3456789]\d{9}$/.test(phone))){ 
			$("#errorphone").text("您输入的手机号格式不正确");
		}	
	)};
});
	
</script>
</html>
